package PlaneGame.CODE;

import javax.imageio.ImageIO;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;

public class EnemyA extends Enemy{
    public EnemyA() {
        super();
        this.speed=3;
        this.width=30;
        this.height=30;
        this.imageNumber=1;
        this.explodeImageNumber=4;
        this.paths= new String[]{"src/PlaneGame/IMAGE/enemy1.png",
                "src/PlaneGame/IMAGE/enemy1_down1.png",
                "src/PlaneGame/IMAGE/enemy1_down2.png",
                "src/PlaneGame/IMAGE/enemy1_down3.png",
                "src/PlaneGame/IMAGE/enemy1_down4.png"};
        images=new BufferedImage[imageNumber+explodeImageNumber];
        for (int i = 0; i < images.length; i++) {
            try {
                images[i] = ImageIO.read(new File(paths[i]));
            } catch (IOException e) {
                throw new RuntimeException(e);
            }
        }
    }
    @Override
    void init() {
        super.init();
        blood=1;
    }
}
